﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="DefaultShow.aspx.cs" Inherits="Attendance_DefaultShow" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <table align="center" style="width: 375px">
            <tr>
                <td colspan="4">
                    开始时间：<asp:TextBox ID="txtStartTime" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                        ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td colspan="4">
                    结束时间：<asp:TextBox ID="txtEndTime" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td align="center" colspan="4">
                    <asp:Button ID="btnSearch" runat="server" Text="显示结果" OnClick="btnSearch_Click" /></td>
            </tr>
            <tr>
                <td colspan="4" style="height: 140px">
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" Width="368px" CellPadding="4" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="grdResult_SelectedIndexChanged">
                        <Columns>
                            <asp:BoundField HeaderText="日期" DataField="date" />
                            <asp:BoundField HeaderText="类型" DataField="type" />
                            <asp:BoundField HeaderText="迟到/早退时间" DataField="breachtime" />
                            <asp:ButtonField Text="选定" CommandName="Select" />
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="4">
                    <asp:Button ID="btnAskReview" runat="server" Text="请求人事复查" Visible="False" OnClick="btnAskReview_Click" /></td>
            </tr>
        </table>
    
    </div>
</asp:Content>